<?php

include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once (__DIR__.'/AlibabaProductGetParam/AlibabaProductReserveRange.class.php');
include_once (__DIR__.'/AlibabaProductGetParam/AlibabaProductSampleInfo.class.php');

class AlibabaProductProductProcessing extends SDKDomain {

       	
    private $images;
    
        /**
    * @return 定制商品样图
    */
        public function getImages() {
        return $this->images;
    }
    
    /**
     * 设置定制商品样图     
     * @param array include @see String[] $images     
     * 参数示例：<pre>["https://1.jpg","https://1.jpg"]</pre>     
     * 此参数必填     */
    public function setImages( $images) {
        $this->images = $images;
    }
    
        	
    private $customType;
    
        /**
    * @return 定制方式，可选值: processing、sku
    */
        public function getCustomType() {
        return $this->customType;
    }
    
    /**
     * 设置定制方式，可选值: processing、sku     
     * @param array include @see String[] $customType     
     * 参数示例：<pre>["processing"]</pre>     
     * 此参数必填     */
    public function setCustomType( $customType) {
        $this->customType = $customType;
    }
    
        	
    private $minPrice;
    
        /**
    * @return 价格区间的最低价	
    */
        public function getMinPrice() {
        return $this->minPrice;
    }
    
    /**
     * 设置价格区间的最低价	     
     * @param Double $minPrice     
     * 参数示例：<pre>10.00</pre>     
     * 此参数必填     */
    public function setMinPrice( $minPrice) {
        $this->minPrice = $minPrice;
    }
    
        	
    private $maxPrice;
    
        /**
    * @return 价格区间的最高价
    */
        public function getMaxPrice() {
        return $this->maxPrice;
    }
    
    /**
     * 设置价格区间的最高价     
     * @param Double $maxPrice     
     * 参数示例：<pre>100.00</pre>     
     * 此参数必填     */
    public function setMaxPrice( $maxPrice) {
        $this->maxPrice = $maxPrice;
    }
    
        	
    private $minOrderQuantity;
    
        /**
    * @return 最小起订量
    */
        public function getMinOrderQuantity() {
        return $this->minOrderQuantity;
    }
    
    /**
     * 设置最小起订量     
     * @param Long $minOrderQuantity     
     * 参数示例：<pre>50</pre>     
     * 此参数必填     */
    public function setMinOrderQuantity( $minOrderQuantity) {
        $this->minOrderQuantity = $minOrderQuantity;
    }
    
        	
    private $stockOfferIds;
    
        /**
    * @return 关联现货商品的id列表
    */
        public function getStockOfferIds() {
        return $this->stockOfferIds;
    }
    
    /**
     * 设置关联现货商品的id列表     
     * @param array include @see Long[] $stockOfferIds     
     * 参数示例：<pre>[6386,6387]</pre>     
     * 此参数必填     */
    public function setStockOfferIds( $stockOfferIds) {
        $this->stockOfferIds = $stockOfferIds;
    }
    
        	
    private $reserveRanges;
    
        /**
    * @return 出货周期	
    */
        public function getReserveRanges() {
        return $this->reserveRanges;
    }
    
    /**
     * 设置出货周期	     
     * @param array include @see AlibabaProductReserveRange[] $reserveRanges     
     * 参数示例：<pre>[{"quantity":100,"period":10}]</pre>     
     * 此参数必填     */
    public function setReserveRanges(AlibabaProductReserveRange $reserveRanges) {
        $this->reserveRanges = $reserveRanges;
    }
    
        	
    private $sampleInfo;
    
        /**
    * @return 打样信息	
    */
        public function getSampleInfo() {
        return $this->sampleInfo;
    }
    
    /**
     * 设置打样信息	     
     * @param AlibabaProductSampleInfo $sampleInfo     
     * 参数示例：<pre>	{"isSupportSample":true,"price":10,"period":2}</pre>     
     * 此参数必填     */
    public function setSampleInfo(AlibabaProductSampleInfo $sampleInfo) {
        $this->sampleInfo = $sampleInfo;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "images", $this->stdResult )) {
    				$this->images = $this->stdResult->{"images"};
    			}
    			    		    				    			    			if (array_key_exists ( "customType", $this->stdResult )) {
    				$this->customType = $this->stdResult->{"customType"};
    			}
    			    		    				    			    			if (array_key_exists ( "minPrice", $this->stdResult )) {
    				$this->minPrice = $this->stdResult->{"minPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "maxPrice", $this->stdResult )) {
    				$this->maxPrice = $this->stdResult->{"maxPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "minOrderQuantity", $this->stdResult )) {
    				$this->minOrderQuantity = $this->stdResult->{"minOrderQuantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "stockOfferIds", $this->stdResult )) {
    				$this->stockOfferIds = $this->stdResult->{"stockOfferIds"};
    			}
    			    		    				    			    			if (array_key_exists ( "reserveRanges", $this->stdResult )) {
    			$reserveRangesResult=$this->stdResult->{"reserveRanges"};
    				$object = json_decode ( json_encode ( $reserveRangesResult ), true );
					$this->reserveRanges = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaProductReserveRangeResult=new AlibabaProductReserveRange();
						$AlibabaProductReserveRangeResult->setArrayResult($arrayobject );
						$this->reserveRanges [$i] = $AlibabaProductReserveRangeResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "sampleInfo", $this->stdResult )) {
    				$sampleInfoResult=$this->stdResult->{"sampleInfo"};
    				$this->sampleInfo = new AlibabaProductSampleInfo();
    				$this->sampleInfo->setStdResult ( $sampleInfoResult);
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "images", $this->arrayResult )) {
    			$this->images = $arrayResult['images'];
    			}
    		    	    			    		    			if (array_key_exists ( "customType", $this->arrayResult )) {
    			$this->customType = $arrayResult['customType'];
    			}
    		    	    			    		    			if (array_key_exists ( "minPrice", $this->arrayResult )) {
    			$this->minPrice = $arrayResult['minPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "maxPrice", $this->arrayResult )) {
    			$this->maxPrice = $arrayResult['maxPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "minOrderQuantity", $this->arrayResult )) {
    			$this->minOrderQuantity = $arrayResult['minOrderQuantity'];
    			}
    		    	    			    		    			if (array_key_exists ( "stockOfferIds", $this->arrayResult )) {
    			$this->stockOfferIds = $arrayResult['stockOfferIds'];
    			}
    		    	    			    		    		if (array_key_exists ( "reserveRanges", $this->arrayResult )) {
    		$reserveRangesResult=$arrayResult['reserveRanges'];
    			$this->reserveRanges = new AlibabaProductReserveRange();
    			$this->reserveRanges->setStdResult ( $reserveRangesResult);
    		}
    		    	    			    		    		if (array_key_exists ( "sampleInfo", $this->arrayResult )) {
    		$sampleInfoResult=$arrayResult['sampleInfo'];
    			    			$this->sampleInfo = new AlibabaProductSampleInfo();
    			    			$this->sampleInfo->setStdResult ( $sampleInfoResult);
    		}
    		    	    		}
 
   
}
?>